hextastudio/ui needs your support to stay running 🫶 Help us

Alert Dialog

A modal dialog that interrupts the user with important content and expects a response.

Preview

Installation

bash
npx hexta-ui add alertdialog

tsx
import { AlertDialog, AlertDialogTitle, AlertDialogContent, AlertDialogButtons } from "@/components/hexta-ui/AlertDialog";

Basic Usage

Custom Positioning

<AlertDialog 
  isOpen={isOpen}
  onClose={() => setIsOpen(false)}
  position="top"
  size="lg"
  showOverlay={false}
>
  {/* Dialog content */}
</AlertDialog>

Props Reference

Prop Name
Type
Default
Description
Prop NameTypeDefaultDescription